package com.ywhao.appcontext

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.ywh.base.appcontext.AppContext

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        AppContext.context?.let {
            Toast.makeText(it, "哈哈哈", Toast.LENGTH_SHORT).show()
        }
    }
}